#pragma once

#include "../Algorithm.h"

class AlgSkuOffset : public Algorithm
{

public:
	AlgSkuOffset();
	~AlgSkuOffset();
	/*算法初始化接口*/
	virtual bool Init(const AlgInit& init, const QString& other) override;

	virtual bool InitSkuInfo(const AlgSkuInfo& sku, QString& result) override;

	virtual bool Calculate(const QString& input, Position& pos, QString& output) override;
	virtual bool ExcuteCmd(int cmd, const QString& input, QString& output) override;

private:
	Position m_base = {};
	Size m_sku = {};
	int m_dir = -1;	 // 来货方向 0：横向(箱子长和输送线坐标系的X轴平行) 1：纵向
};
